import request from "@/utils/request";

// 获取地图数据
export const getBaseMap = (params: any) => {
  return request({
    url: "/screen/secondHouse/getBaseMap",
    method: "get",
    params: params,
  });
};

// 外地居民首套购买来源 飞线图
export const getForeignPlaceFirstPurchaseFly = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getForeignPlaceFirstPurchaseFly",
    method: "post",
    data: params,
  });
};

// 首套/二套/多套购房占比 首行图1 饼图
export const getPurchaseProportion = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getPurchaseProportion",
    method: "post",
    data: params,
  });
};

//首套购房 二套购房 多套购房 首行柱形图
export const getPurchaseAreaBar = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getPurchaseAreaBar",
    method: "post",
    data: params,
  });
};
//外地居民购房面积统计 中图 饼图1
export const getForeignPlacePurchaseAreaPie = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getForeignPlacePurchaseAreaPie",
    method: "post",
    data: params,
  });
};
//外地居民购房年龄统计 中图 饼图2
export const getForeignPlacePurchaseAgePie = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getForeignPlacePurchaseAgePie",
    method: "post",
    data: params,
  });
};

//外地居民来源地及购买意愿分析 中图3 柱形图
export const getForeignPlacePurchaseBar = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getForeignPlacePurchaseBar",
    method: "post",
    data: params,
  });
};

// 刚需改善购房统计 底部 柱形图
export const getPurchaseAspirationStatisticsBar = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getPurchaseAspirationStatisticsBar",
    method: "post",
    data: params,
  });
};

// 刚需改善购房统计 底部 折线图
export const getPurchaseAspirationStatisticsLine = (params: any) => {
  return request({
    url: "/screen/purchaseaspiration/getPurchaseAspirationStatisticsLine",
    method: "post",
    data: params,
  });
};
